﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibNiconico.NiconicoApi.Lives.Constant
{
    internal static class NicoLiveConstant
    {
        internal const string HOSTNAME = "live.nicovideo.jp";

        internal const string OW_HOSTNAME = "ow.live.nicovideo.jp";

        internal const string WATCH_HOSTNAME = "live.nicovideo.jp";

        internal const string LIVE_ID_FORMAT = "lv[0-9]+";

        private static Uri watch_nicolive_url;

        internal static Uri WATCH_NICOLIVE_URL
        {
            get
            {
                if (watch_nicolive_url == null)
                {
                    watch_nicolive_url = new UriBuilder("http", WATCH_HOSTNAME).Uri;
                }

                return watch_nicolive_url;
            }
        }


        private static Uri ow_nicolive_url;

        internal static Uri OW_NICOLIVE_URL
        {
            get
            {
                if (ow_nicolive_url == null)
                {
                    ow_nicolive_url = new UriBuilder("http", OW_HOSTNAME).Uri;
                }

                return ow_nicolive_url;
            }
        }

        private static Uri nicolive_url;

        internal static Uri NICOLIVE_URL
        {
            get
            {
                if (nicolive_url == null)
                {
                    nicolive_url = new UriBuilder("http", HOSTNAME).Uri;
                }
                return nicolive_url;
            }
        }
        

        
    }
}
